package com.example.close_order.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Component
public class ApplicationReadyListener {
    
    private static final Logger logger = LoggerFactory.getLogger(ApplicationReadyListener.class);
    
    @EventListener(ApplicationReadyEvent.class)
    public void onApplicationReady() {
        logger.info("订单自动关闭系统启动完成");
        logger.info("系统功能:");
        logger.info("- Redisson分布式订单自动关闭");
        logger.info("- 定时任务兜底补偿机制");
        logger.info("- 异步通知发送");
        logger.info("- 幂等性保证和状态校验");
    }
}